package xuegao.study.mall.admin.feign;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xuegao.study.mall.common.api.CommonResult;
import xuegao.study.mall.common.model.oms.OmsOrderSetting;

@FeignClient(contextId = "order-setting", name = "study-order-service", path = "/oms/order/setting")
public interface OmsOrderSettingClient {

    @ApiOperation("获取指定订单设置")
    @GetMapping(value = "/{id}")
    CommonResult<OmsOrderSetting> getItem(@PathVariable Long id);

    @ApiOperation("修改指定订单设置")
    @PostMapping(value = "/update/{id}")
    CommonResult update(@PathVariable Long id, @RequestBody OmsOrderSetting omsOrderSetting);
}
